package com.kgc.util;

import java.util.Random;

/**
 * @author :qinya
 * @PackageName:com.kgc.util
 * @ClassName: RandomNumberUtil
 * @Description: TODO
 * @date : 2025/5/16,14:38
 */
public class RandomNumberUtil {
    public static String getRandomNumber() {
        Random random = new Random();
        // 生成0-9999之间的随机整数，不足四位时前面补0
        return String.format("%04d", random.nextInt(10000));
    }
}
